package cau1;

import java.awt.Container;
import java.awt.Font;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JRadioButton;

public class LuaChonDangNhap extends JFrame {
	public LuaChonDangNhap() {
		try {
			setDefaultCloseOperation(EXIT_ON_CLOSE);
			initCompoment();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	private void initCompoment() {
		Container c = getContentPane();
		this.setTitle("Lua Chon Dang Nhap");
		this.setSize(600, 500);

		JLabel lbtitle = new JLabel();
		lbtitle.setText("Lua Chon Dang Nhap");
		lbtitle.setFont(new Font("Arial", Font.BOLD, 20));
		lbtitle.setSize(250, 100);
		lbtitle.setLocation(200, 100);

		JButton butviet = new JButton();
		butviet.setText("Viet");
		butviet.setSize(60, 30);
		butviet.setEnabled(false);
		butviet.setLocation(100, 135);
		
		JButton butanh = new JButton();
		butanh.setText("Anh");
		butanh.setSize(60, 30);
		butanh.setLocation(440, 135);		

		JRadioButton radkoketnoi = new JRadioButton();
		radkoketnoi.setText("Khong Ket Noi ADSL");
		radkoketnoi.setSize(150, 70);
		radkoketnoi.setLocation(380, 180);

		JRadioButton radketnoi = new JRadioButton();
		radketnoi.setText("Ket Noi ADSL");
		radketnoi.setSize(100, 70);
		radketnoi.setEnabled(false);
		radketnoi.setLocation(100, 180);

		JButton butketnoi = new JButton();
		butketnoi.setText("Ket Noi");
		butketnoi.setSize(100, 30);
		butketnoi.setLocation(100, 280);
		
		JButton butkoketnoi = new JButton();
		butkoketnoi.setText("Khong Ket Noi");
		butkoketnoi.setSize(120, 30);
		butkoketnoi.setLocation(250, 280);
		butkoketnoi.setEnabled(false);
		
		JButton butdangnhap = new JButton();
		butdangnhap.setText("Dang Nhap");
		butdangnhap.setSize(100, 30);
		butdangnhap.setLocation(420, 280);
		butdangnhap.setEnabled(false);

		c.add(lbtitle);
		c.add(butanh);
		c.add(radkoketnoi);
		c.add(butviet);
		c.add(radketnoi);
		c.add(butketnoi);
		c.add(butkoketnoi);
		c.add(butdangnhap);
		this.setLayout(null);
		this.setVisible(true);

	}

}
